<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:composition>
	<p:column sortBy="#{p.firstname}">
		<f:facet name="header">
			<h:outputText value="#{appMsg['driver.firstname']}" />
		</f:facet>
		<h:outputText value="#{p.firstname}" />
	</p:column>
	<p:column sortBy="#{p.lastname}">
		<f:facet name="header" sortBy="#{p.lastname}">
			<h:outputText value="#{appMsg['driver.lastname']}" />
		</f:facet>
		<h:outputText value="#{p.lastname}" />
	</p:column>
	<p:column sortBy="#{p.age}">
		<f:facet name="header">
			<h:outputText value="#{appMsg['driver.age']}" />
		</f:facet>
		<h:outputText value="#{p.age}" />
	</p:column>
	<p:column sortBy="#{p.birthdate}">
		<f:facet name="header">
			<h:outputText value="#{appMsg['driver.birthdate']}" />
		</f:facet>
		<h:outputText value="#{p.birthdate}">
			<f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" timeZone="GMT+1" />
		</h:outputText>
	</p:column>
	<p:column sortBy="#{p.level.id}">
		<f:facet name="header">
			<h:outputText value="#{appMsg['driver.level']}" />
		</f:facet>
		<h:outputText value="#{p.level.name}" rendered="#{p.level != null}" />
	</p:column>
	<p:column sortBy="#{p.team.id}">
		<f:facet name="header">
			<h:outputText value="#{appMsg['driver.team']}" />
		</f:facet>
		<h:outputText value="#{p.team.name}" rendered="#{p.team != null}" />
	</p:column>
</ui:composition>
</html>
